/*
 * @Author: your name
 * @Date: 2022-01-08 17:19:11
 * @LastEditTime: 2022-01-20 20:58:18
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \json-serveg:\桌面2\VueStudy\VueCLI\vue_test\vue.config.js
 */
module.exports = {
    lintOnSave: false,  //关闭语法检查
    devServer: {
      proxy: {
          '/api': {
              target: 'http://apis.juhe.cn',//聚合接口地址
              ws: true,
              changeOrigin: true,
              pathRewrite:{//重写路径
                  '^/api':''
              }
          },
          '/foo': {
            target: 'https://bang.360.cn',//聚合接口地址
            ws: true,
            changeOrigin: true,
            pathRewrite:{//重写路径
                '^/foo':''
            }
        }
      },
    }
  }